#ifndef _uart_include_guard_
#define _uart_include_guard_

#include "serial_manager.h"
#include "rs232.h"

namespace igslib
{
    class RS232:public CUart
    {
        protected:
        int port;
        parity_mode map_parity_mode(ParityMode);
        data_bits map_data_bits(DataBits);
        stop_bits map_stop_bits(StopBits);
        public:
            RS232();
            virtual ~RS232()
            {
                std::cout << __func__ << std::endl;
            }
            int Send(char*,int);
            int Receive(char*,int);
            bool Open(DeviceNumber);
            void Close();
            void FlushBuffer();
    };
};
#endif
